#创建dirver对象
from selenium import webdriver
from selenium.webdriver.chrome.service import Service

def init_driver():
    service = Service('../config/chromedriver.exe')

    # 创建driver对象
    driver = webdriver.Chrome(service=service)
    # 设置一个窗口最大化
    driver.maximize_window()
    # 设置一个隐式等待
    driver.implicitly_wait(5)

    return driver